package com.yc.testupload.model;

/**
 * 发布结果类
 * 封装发布操作的结果信息
 */
public class PublishResult {
    private boolean success;
    private String message;
    private String platformResponse;
    private long publishTime;

    public PublishResult() {
        this.publishTime = System.currentTimeMillis();
    }

    public PublishResult(boolean success, String message) {
        this.success = success;
        this.message = message;
        this.publishTime = System.currentTimeMillis();
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPlatformResponse() {
        return platformResponse;
    }

    public void setPlatformResponse(String platformResponse) {
        this.platformResponse = platformResponse;
    }

    public long getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(long publishTime) {
        this.publishTime = publishTime;
    }
}